import request from "./request.js";

export function GetStationList(data) {
    return request.get("/station/list", { params: data });
}

export function GetStationListxq(data) {
    return request.get("/station/listxq",data);
}



export function GetStationList1(data){
    return request.get("/station/collect",{ params: data })
}

export function ShouId(data) {
    console.log("发送给后端的参数:", { id: data });
    return request.post(`/station/ShouId?id=${data}`, {
        headers: {
            'Content-Type': 'application/json',
        }
    });
}

export function ShouId1(data) {
    console.log("发送给后端的参数:", { id: data });
    return request.post(`/station/QuXiaoShou?id=${data}`, {
        headers: {
            'Content-Type': 'application/json',
        }
    });
}
//     优惠卷

export function GetStationListwd(data) {
    return request.get("/station/listwd", { params: data });
}

export function Exceptional(data) {
    return request.post("/exceptional/add",  data );
}

// 查询异常
export function ExceptionalList(userId) {
    return request.get("/exceptional/list");
}